package cn.edu.xmu.oomall.payment.microservice;

import cn.edu.xmu.oomall.payment.model.vo.SimplePaymentVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "alipay-service",url= "http://116.63.169.151:8082")
public interface AlipayService {
    /**
     * Alipay支付
     */
    @PostMapping("internal/alipay/gateway.do")
    InternalReturnObject gatewayDo(@RequestParam(required = false) String app_id ,
                            @RequestParam(required = true) String method ,
                            @RequestParam(required = false) String format ,
                            @RequestParam(required = false) String charset  ,
                            @RequestParam(required = false) String sign_type  ,
                            @RequestParam(required = false) String sign  ,
                            @RequestParam(required = false) String timestamp  ,
                            @RequestParam(required = false) String notify_url   ,
                            @RequestParam(required = true) String biz_content
    );
}
